
module.exports = function ($http, $q, httpservice,$cookies) {

  var financeCenterService={
    //资金账户
    findUserAccountInfo:findUserAccountInfo,
    findUserAccountDetailList:findUserAccountDetailList
  }





  function findUserAccountInfo(id){
    var deferred = $q.defer();
    $http({
      method: 'POST',
      url: httpservice.findUserAccountInfoUrl,
      data:{
        lawyerid:id
      }
    }).then(function successCallback(response) {
      deferred.resolve(response.data);
    }, function errorCallback(response) {
      deferred.reject(response);
    });
    return deferred.promise;
  }

  function findUserAccountDetailList(params){
    var deferred = $q.defer();
    $http({
      method: 'POST',
      url: httpservice.findUserAccountDetailListUrl,
      data:params
    }).then(function successCallback(response) {
      deferred.resolve(response.data);
    }, function errorCallback(response) {
      deferred.reject(response);
    });
    return deferred.promise;
  }
  return financeCenterService;
}
